<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap">
    <div class="row">
        <div style="background: #ffffff;">
            <form class="form-horizontal" name="setGSCForm" novalidate>
                <div class="panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>设置章节勋章</strong></h3>
                    </div>
                    <div class="panel-body panel-dialog">
                        <p>请按照提示设置章节相关勋章的信息。</p>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">当前章节信息</label>
                            <div class="col-md-2 col-xs-12 control-label">
                                <div class="input-group">
                                    <div class="profile-image">
                                        <img ng-src="{{currentGroup.picture | faceUrl}}" width="100px">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-12 control-label" style="text-align: left">
                                <div class="input-group">
                                    <ul>
                                        <li>章节名称：{{currentGroup.name}}</li>
                                        <li>编码：{{currentGroup.code}}</li>
                                        <li>描述：{{currentGroup.remark}}</li>
                                    </ul>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">勋章信息</label>
                            <div class="col-md-2 col-xs-12 control-label" ng-show="!!currentGroupBadgeRule.badge">
                                <div class="input-group">
                                    <div class="profile-image">
                                        <img ng-src="{{currentGroupBadgeRule.badge.picture | faceUrl}}" width="100px">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-12 control-label" style="text-align: left" ng-show="!!currentGroupBadgeRule.badge">
                                <div class="input-group">
                                    <ul>
                                        <li>勋章名称：{{currentGroupBadgeRule.badge.name}}</li>
                                        <li>编码：{{currentGroupBadgeRule.badge.code}}</li>
                                        <li>描述：{{currentGroupBadgeRule.badge.remark}}</li>
                                    </ul>
                                </div>
                            </div>
                            <div class="col-md-6 col-xs-12 control-label" style="text-align: left" ng-show="!currentGroupBadgeRule.badge">
                                <div class="input-group">
                                    <span style="color: red;">无</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">匹配勋章</label>
                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control"
                                           ng-model="badgeKey" placeholder="输入勋章名称或编码, 点击匹配进行查询"/>
                                </div>
                            </div>
                            <button class="btn btn-primary" ng-click="queryBadge()">
                                <i class="fa fa-search"></i> 匹 配
                            </button>
                        </div>

                        <div class="form-group" ng-repeat="badge in badgeResult">
                            <label class="col-md-3 col-xs-12 control-label"></label>
                            <div class="col-md-2 col-xs-12 control-label">
                                <div class="input-group">
                                    <div class="profile-image">
                                        <img ng-src="{{badge.badgeView.picture | faceUrl}}" width="100px">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-xs-12 control-label" style="text-align: left">
                                <div class="input-group">
                                    <ul>
                                        <li>勋章名称：{{badge.badgeView.name}}</li>
                                        <li>编码：{{badge.badgeView.code}}</li>
                                        <li>描述：{{badge.badgeView.remark}}</li>
                                    </ul>
                                </div>
                            </div>
                            <button class="btn btn-info" ng-click="setCurrentBadge(badge)">
                                <i class="fa fa-plus"></i> 设 置
                            </button>
                        </div>

                    </div>
                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>取消</button>
                        <button class="btn btn-info" ng-click="submit()"><i class="fa fa-check"></i>确定</button>
                        <button class="btn btn-info" ng-click="unActive()"><i class="fa fa-check"></i>取消匹配</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- END PAGE CONTENT WRAPPER -->